package com.jungle.bfi.generator.mo;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Setter
@Getter
public class ModelMo {
    private String packageName;
    private String model;
    private String name;
    private String comment;

    //private Path projectDir;

    private List<AttributeMo> fields = new ArrayList<>();
    private List<String> imports = new ArrayList<>();
    /**
     * 业务模块(module)<br>
     * eg: metadata
     */
    private String module;

    public void addField(AttributeMo attributeMo){
        this.fields.add(attributeMo);
    }
    public void addImport(String importClass){
        this.imports.add(importClass);
    }
}
